﻿using PcProject.Domain.Models.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PcProject.Domain.IRepository
{
    public interface ISpecificaRepository
    {
        /// <summary>
        /// 显示商品规格
        /// </summary>
        /// <returns></returns>
        List<Specification> GetSpecifications();

        /// <summary>
        /// 添加商品规格
        /// </summary>
        /// <param name="obj">参数</param>
        /// <returns></returns>
        Task<int> AddSpecAsyn(Specification obj);

        /// <summary>
        /// 删除商品规格
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<int> DeleSpecAsync(int id);

        /// <summary>
        /// 反填规格
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Specification FillSpecAsync(int id);

        /// <summary>
        /// 修改规格
        /// </summary>
        /// <param name="obj">参数</param>
        /// <returns></returns>
        Task<int> UptSpecAsync(Specification obj);

    }
}
